package com.me.items;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.me.example.Assets;
import com.me.experiment.Object;

public class Text_box extends Object {

	public String str;
	public int Textcolor;
	
	public Text_box(float x, float y, String s, int color) {
		setPosition(x,y);
		setTextColor(color);
		setText(s);
		}
	
	public void setTextColor(int color) {
		Textcolor = color;
	}

	public void setText(String txt){
		str = txt;
	}

	@Override
	protected void onTouchDown() {
		// TODO Auto-generated method stub
	}

	@Override
	protected void onTouchUp() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void onTouchLong() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void onTouchDrag(float x, float y) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void update(float deltatime) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void draw(SpriteBatch batch) {
		// TODO Auto-generated method stub
		Assets.font.draw(batch,str, x_,y_);
	}

}
